import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Make_appointment from './views/Make_appointment.vue'
import My_appointment from './views/My_appointment.vue'
import My_join from './views/My_join.vue'

import Form from './views/nav1/Form.vue'
import Table from './views/nav1/Table.vue'
import user from './views/nav1/user.vue'
// import echarts from './views/charts/echarts.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },

    //首页
    {
        path: '/',
        component: Home,
        name: '',
        iconCls: 'fa fa-home',
        leaf: true,//只有一个节点
        children: [
            { path: '/Main', component: Main, name: '首页' }
        ]
    },
/* 会议预约申请 */
   {
       path: '/',
       component: Home,
       name: '',
       iconCls: 'fa fa-edit',
       leaf: true,//只有一个节点
        children: [
            { path: '/Make_appointment', component: Make_appointment, name: '申请预约' }
        ]
    },
/* 已预约会议 */
   {
       path: '/',
       component: Home,
       name: '',
       iconCls: 'fa fa-gavel',
       leaf: true,//只有一个节点
        children: [
            { path: '/My_appointment', component: My_appointment, name: '已预约' }
        ]
    },
/* 会议参与 */
    {
        path: '/',
        component: Home,
        name: '',
        iconCls: 'fa fa-group',
        leaf: true,//只有一个节点
        children: [
            { path: '/My_join', component: My_join, name: '会议参与' }
        ]
    },
/* 访问不到页面 */
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    },

    {
        path: '/',
        component: Home,
        name: '导航一',
        iconCls: '',
        children: [
            { path: '/Form', component: Form, name: 'Form' },
            { path: '/Table', component: Table, name: 'Table' },
            { path: '/user', component: user, name: 'user' }
            ]
       /* name: '我的日程',
        iconCls: 'fa fa-bar-chart',
        leaf: true,//只有一个节点
        children: [
            { path: '/echarts', component: echarts, name: '我的日程' }
        ]*/
    },
];



export default routes;